package com.ruoyi.system.domain;

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 entity_device_mode
 * 
 * @author ruoyi
 * @date 2021-01-09
 */
public class EntityDeviceMode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;
    /** 器材类型名称 */
    @Excel(name = "器材类型")
    private String typeName;
    /** 器材类型id */
    private Long typeId;
    /** 器材 */
    @Excel(name = "器材型号")
    private String modeName;
    /** 单位 */
    @Excel(name = "单位")
    private Long unit;
    /** 顺序 */
    @Excel(name = "顺序")
    private Long sequence;
    /** 有效性，0-无效，1-有效 */
    @Excel(name = "状态",readConverterExp="0=无效,1=有效")
    private Integer valid;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setModeName(String modeName) {
        if(!StringUtils.isEmpty(modeName)){
            this.modeName = modeName;
        }
    }

    public String getModeName() 
    {
        return modeName;
    }
    public void setSequence(Long sequence) 
    {
        this.sequence = sequence;
    }

    public Long getSequence() 
    {
        return sequence;
    }

    public void setValid(Integer valid) 
    {
        this.valid = valid;
    }

    public Integer getValid() 
    {
        return valid;
    }
    public void setUnit(Long unit) 
    {
        this.unit = unit;
    }

    public Long getUnit() 
    {
        return unit;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeId", getTypeId())
            .append("typeName", getTypeName())
            .append("modeName", getModeName())
            .append("sequence", getSequence())
            .append("updateTime", getUpdateTime())
            .append("valid", getValid())
            .append("createTime", getCreateTime())
            .append("unit", getUnit())
            .toString();
    }
}
